<?php

namespace App\Models;


use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Library\Fluent;

/**
 * roles 映射表
 */
#[ORM\Entity]
#[ORM\Table(name: 'roles')]
class Role extends Fluent
{
    /**
     * 主键ID
     * @var int|null
     */
    #[ORM\Id]
    #[ORM\Column(type: Types::INTEGER)]
    #[ORM\GeneratedValue]
    protected int|null $id = null;

    /**
     * 角色名称
     * @var string
     */
    #[ORM\Column(length: 140)]
    public string $name = "";

    /**
     * 节点规则
     * @var string
     */
    #[ORM\Column(length: 140)]
    public string $rules = "";
}